/**
 * Created by zixinhmc on 2016/9/17.
 */
console.log('-------------------------------')
console.log('test13')

var handler = {
    deleteProperty(target, key){
        invariant(key, 'delete');
        return;
    }
}

function invariant(key, action) {
    if(key[0] === '_'){
        throw new Error(`Invalid attempt to ${action} private "${key}" property`);
    }
}
var target = {_prop: 'foo'}
var proxy = new Proxy(target, handler);
// delete proxy._prop;